/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package zonasoft.Manejadores;

import java.sql.Connection;
import java.sql.DriverManager;


/**
 *
 * @author TheShibumiGroup
 */
public class Conexion {
Connection conn=null;

    public Connection conectar(){
     try{
     Class.forName("com.mysql.jdbc.Driver"); //se carga el driver
//      private String basedatos = "jdbc:mysql://localhost/zonificacion";
// conn= DriverManager.getConnection("jdbc:mysql://localhost/zonificacion","root","");
  conn= DriverManager.getConnection("jdbc:mysql://192.168.1.2:3306/zonificacion","root","");
    /// JOptionPane.showMessageDialog(null,"Conexión establecida");
     }
    catch (Exception ex){
     System.err.print("error"+ex);
    }
     return conn;
  }
   

}
